﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<MvcProject.Models.MaterialUseRecord>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    工程量清单
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        工程量清单</h2>
    <div class="editor-label">
        项目名称
    </div>
    <table>
        <tr>
            <th>
                定额名称
            </th>
            <th>
                工程量
            </th>
            <th>
                人工费
            </th>
            <th>
                材料费
            </th>
            <th>
                机械费
            </th>
            <th>
                管理费
            </th>
            <th>
                利润
            </th>
            <th>
            </th>
        </tr>
        <% foreach (var item in Model)
           { %>
        <tr>
            <td>
                <%: item.RatedName %>
            </td>
            <td>
                <%: String.Format("{0:F}", item.Project_volume) %>
            </td>
            <td>
                <%: String.Format("{0:F}", item.Labor_costs) %>
            </td>
            <td>
                <%: String.Format("{0:F}", item.Materials_costs) %>
            </td>
            <td>
                <%: String.Format("{0:F}", item.Machinery_costs) %>
            </td>
            <td>
                <%: String.Format("{0:F}", item.Management_Fee) %>
            </td>
            <td>
                <%: String.Format("{0:F}", item.Profit) %>
            </td>
            <td>
                <%: Html.ActionLink("编辑", "Edit", new { id=item.id }) %>
                |
                <%: Html.ActionLink("详细信息", "Details", new { id=item.id })%>
                |
                <%: Html.ActionLink("删除", "Delete", new { id=item.id })%>
            </td>
        </tr>
        <% } %>
    </table>
    <p>
        <%: Html.ActionLink("创建", "Create", new { projectId = Request["projectId"], teamId = Request["teamId"] })%>
        <%: Html.ActionLink("返回", "../ContractInfo/ProjectContractIndex")%>
    </p>
</asp:Content>
